import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemJifenComponent} from './mem-jifen.component';

const routes: Routes = [
    {path: '', component: MemJifenComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-jifen/add-mem-jifen.module#AddMemJifenModule'},
            {path: 'list', loadChildren: './list-mem-jifen/list-mem-jifen.module#ListMemJifenModule'},
            {path: 'modify', loadChildren: './modify-mem-jifen/modify-mem-jifen.module#ModifyMemJifenModule'},
            {path: 'report', loadChildren: './report-mem-jifen/report-mem-jifen.module#ReportMemJifenModule'},
            {path: 'mem-jifen', loadChildren: './report-mem-jifen/report-mem-jifen.module#ReportMemJifenModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemJifenRoutingModule {
}
